function getSize(file, func) {
	var reader = new FileReader();
	reader.onload = function (e) {
		var img = new Image();
		img.src = e.target.result;
		img.onload = function () {
			func(img.width, img.height);
		}
	}
	reader.readAsDataURL(file);
}
